<h1><?php echo $title;?></h1>
<?php echo form_open('cmemberlogin/setting');?>
<table class='table-manipulate'>
	<tr>
		<td>Firstname</td>
		<td>
		<?php 
			$data = array('name'=>'firstname','id'=>'firstname','size'=>25,'value' => $setting['firstname']);
			echo form_input($data) ;?>
		</td>
	</tr>
	<tr>
		<td>Lastname</td>
		<td>
		<?php 
			$data = array('name'=>'lastname','id'=>'lastname','size'=>25,'value' => $setting['lastname']);
			echo form_input($data) ;?>
		</td>
	</tr>
	<tr>
		<td>Gender</td>
		<td>
		<?php 
			$options = array('M' => 'Male', 'F' => 'Female');
			echo form_dropdown('gender',$options,$setting['gender']);?>
		</td>
	</tr>
	<tr>
		<td>Username</td>
		<td>
		<?php $data = array('name'=>'username','id'=>'username','size'=>25,'value' => $setting['username'],'readonly'=>'readonly');
			echo form_input($data) ;?>
		</td>
	</tr>
	<tr>
		<td>Change Password</td>
		<td>
			<span>Yes&nbsp;&nbsp;<input class="changepassword" type="radio" name="changepassword" value="1"></span><br/>
			<span>No&nbsp;&nbsp;&nbsp;<input class="changepassword" checked="checked" type="radio" name="changepassword" value="0"></span>		
		</td>
	</tr>
	<tr>
		<td>Password</td>
		<td>
			<?php $data = array('name'=>'password','id'=>'password','size'=>25,'value' => $setting['password']);
			echo form_password($data) ;?>
		</td>
	</tr>
	<tr>
		<td>Email</td>
		<td>
		<?php $data = array('name'=>'email','id'=>'email','size'=>25,'value' => $setting['email']);
			echo form_input($data) ;?>
		</td>
	</tr>
	<!--  <tr>
		<td>Role</td>
		<td>
		<?php //echo form_dropdown('role_id',$roles,$setting['role_id']);?>
		</td>
	</tr>-->
	<tr>
		<td>Activate</td>
		<td>
		<?php 
			$options = array('1' => 'active', '0' => 'inactive');
			echo form_dropdown('activate',$options,$setting['activate']);?>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<?php echo form_hidden('uid',$setting['uid']);?>
			<?php echo form_submit(array('class'=>'btn','name'=>'submit'),'Change Account');?>
		</td>
	</tr>
</table>
<?php echo form_close();?>